home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / DragOverSP.h.z / DragOverSP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.9 KB  |  129 lines

  1. /*
  2.  * DragOverSP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: DragOverSP.h /main/cde1_maint/2 1995/08/18 18:59:48 drk $ */
  36. /*
  37. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmDragOverSP_h
  39. #define _XmDragOverSP_h
  40.  
  41. #include <X11/Shell.h>
  42. #include <X11/ShellP.h>
  43. #include <Xm/XmP.h>
  44. #include <Xm/DragIconP.h>
  45. #include <Xm/DragOverS.h>
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. #define DOExpose(do) \
  52.     ((XtClass(do))->core_class.expose) ((Widget)(do), NULL, NULL)
  53.  
  54. /* 
  55.  * DRAGOVER SHELL
  56.  */
  57. typedef struct 
  58. {
  59.     XtPointer                extension;
  60. } XmDragOverShellClassPart;
  61.  
  62. /* Full class record declaration */
  63.  
  64. typedef struct _XmDragOverShellClassRec 
  65. {
  66.     CoreClassPart         core_class;
  67.     CompositeClassPart         composite_class;
  68.     ShellClassPart         shell_class;
  69.     WMShellClassPart            wm_shell_class;
  70.     VendorShellClassPart     vendor_shell_class;
  71.     XmDragOverShellClassPart     dragOver_shell_class;
  72. } XmDragOverShellClassRec;
  73.  
  74. externalref XmDragOverShellClassRec xmDragOverShellClassRec;
  75.  
  76. typedef struct _XmBackingRec{
  77.     Position    x, y;
  78.     Pixmap    pixmap;
  79. }XmBackingRec, *XmBacking;
  80.  
  81. typedef struct _XmDragOverBlendRec{
  82.     XmDragIconObject        sourceIcon;    /* source icon */
  83.     Position            sourceX;    /* source location in blend */
  84.     Position            sourceY;    /* source location in blend */
  85.     XmDragIconObject        mixedIcon;    /* blended icon */
  86.     GC                gc;        /* appropriate depth */
  87. }XmDragOverBlendRec, *XmDragOverBlend;
  88.  
  89. typedef struct _XmDragOverShellPart{
  90.     Position            hotX;        /* current hotX */
  91.     Position            hotY;        /* current hotY */
  92.     unsigned char        cursorState;    /* current cursor state */
  93.     unsigned char        mode;
  94.     unsigned char        activeMode;
  95.  
  96.     Position            initialX;    /* initial hotX */
  97.     Position            initialY;    /* initial hotY */
  98.  
  99.     XmDragIconObject        stateIcon;    /* current state icon */
  100.     XmDragIconObject        opIcon;        /* current operation icon */
  101.  
  102.     XmDragOverBlendRec        cursorBlend;    /* cursor blending */
  103.     XmDragOverBlendRec        rootBlend;    /* pixmap or window blending */
  104.     Pixel            cursorForeground;
  105.     Pixel            cursorBackground;
  106.     Cursor            ncCursor;    /* noncached cursor */
  107.     Cursor            activeCursor;    /* the current cursor */
  108.  
  109.     XmBackingRec        backing;     /* backing store for pixdrag */
  110.     Pixmap            tmpPix;        /* temp storage for pixdrag */
  111.     Pixmap            tmpBit;        /* temp storage for pixdrag */
  112.     Boolean                     isVisible;    /* shell is visible */
  113. }XmDragOverShellPart;
  114.  
  115. typedef  struct _XmDragOverShellRec{
  116.     CorePart         core;
  117.     CompositePart     composite;
  118.     ShellPart         shell;
  119.     WMShellPart        wm;
  120.     VendorShellPart    vendor;
  121.     XmDragOverShellPart    drag;
  122. } XmDragOverShellRec;
  123.  
  124. #ifdef __cplusplus
  125. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  126. #endif
  127.  
  128. #endif /* _XmDragOverSP_h */
  129.